// checkbox样式定制，部分颜色调整在variables.less
.ant-checkbox-checked .ant-checkbox-inner {
  background-color: @white !important;
}
.ant-checkbox-checked + span {
  color: @primary-color;
}
// 成功按钮
.ant-btn.success {
  background-color: @success-color;
  border-color: @success-color;
  color: @white;
  &:focus,
  &:hover {
    color: @white-85p;
    background-color: @success-hover;
    border-color: @success-hover;
  }
}
// 次级按钮
.ant-btn.secondary {
  background-color: @function;
  border-color: @function;
  color: @white;
  &:focus,
  &:hover {
    color: @white-85p;
    background-color: @function-hover;
    border-color: @function-hover;
  }
}
// 次级link按钮
.ant-btn-link.secondary {
  color: @function;
  background-color: transparent;
  border-color: transparent;
  &:focus,
  &:hover {
    color: @function-hover;
    background-color: transparent;
    border-color: transparent;
  }
}
// 虚线的分割线
.ant-divider-dashed {
  border-width: 2px 0 0 !important;
}
/**
author: 何其沆(pooky)
desc: 主要弹窗样式，中央弹出，按钮居中等
date: 2021-11-12
*/
.primary-modal {
  text-align: center;
  &::before {
    display: inline-block;
    width: 0;
    height: 100%;
    vertical-align: middle;
    content: '';
  }
  .ant-modal-title {
    font-weight: 700 !important;
  }
  .ant-modal {
    top: 0;
    display: inline-block;
    text-align: left;
    vertical-align: middle;
  }
  .ant-modal-body {
    min-height: 184px !important;
    max-height: 584px !important;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 16px 20px !important;
    box-sizing: border-box !important;
    border-bottom: 1px solid #f0f0f0;
  }
  .ant-modal-footer {
    padding: 24px !important;
    text-align: center !important;
    border-top: none !important;
  }
  .ant-modal-footer .ant-btn {
    min-width: 74px;
    height: 32px;
    margin-right: 24px !important;
  }
  .ant-input,
  .ant-select,
  .ant-picker,
  .ant-select:not(.ant-select-customize-input) .ant-select-selector {
    width: 100% !important;
    border-color: @border-color;
  }
  &.unlimited-height {
    .ant-modal {
      padding: 0 !important;
    }
    .ant-modal-body {
      max-height: none !important;
    }
  }
}
@media (max-width: 767px) {
  .primary-modal .ant-modal {
    flex: 1;
  }
}
// 全屏弹窗
.full-screen-modal {
  .ant-modal {
    width: 100% !important;
    top: 0;
    padding-bottom: 0;
    margin: 0;
  }
  .ant-modal-content {
    display: flex;
    flex-direction: column;
    height: calc(100vh);
    width: 100%;
  }
  .ant-modal-body {
    flex: 1;
    overflow: auto;
  }
}

textarea.ant-input{
  resize: none;
}
